#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
    
    int temp;
    int sum  = 0;
    long product  = 1;
    int n = 0;
    int smallest = 100;
    int largest = 0;
    while(true)
    {
        cin >> temp;
        if(temp == -1)
        {
           cout << "Sum is " << sum << endl;
            cout << "Average is " << fixed << setprecision(1) << sum/(float)n << endl;
            cout <<    "Product is " << product <<endl;
            cout << "Smallest is " << smallest << endl;
            cout << "Largest is " << largest << endl;
            break;
        }
        sum = sum + temp;
        product = product * temp;
        if(temp < smallest)
            smallest  = temp;
        if (temp > largest )
            largest = temp;
        
        n  = n + 1;        
    }   
}